home *** CD-ROM | disk | FTP | other *** search
/ 130 MIDI Tool Box / 130 MIDI Tool Box.iso / pc2mid / pc2mid.txt < prev   
Text File  |  1990-06-22  |  3KB  |  79 lines

  1.          PC2MID - Personal Composer to MIDI file converter
  2.          -------------------------------------------------
  3.  
  4.          Kevin Weiner  June 1990
  5.          Public domain code - may be freely copied and used.
  6.  
  7.  
  8.          PC2MID is a makeshift program for converting Personal Composer
  9.          files to standard MIDI format (until such a facility is added to
  10.          PC).  Since specs for PC files were not available, this program
  11.          works on the output of the PC song file disassembly program, DASM.
  12.          Conversions are not complete - only note on/off messages, program
  13.          changes, and sustain pedal are processed.  An initial tempo
  14.          message, if any is used, but not subsequent tempo changes.  There
  15.          is a limit of about 8200 processed events per MIDI channel.
  16.  
  17.          Conversion steps (follow these carefully):
  18.  
  19.          1. Save a temporary version of your PC file in which recorded
  20.          tracks are retained.  It is recommended that graphics and other
  21.          information NOT be saved in this file.
  22.  
  23.          2. Run the PC disassembly program as follows:
  24.  
  25.              dasm -full pcfile >dasmfile
  26.  
  27.              (This usually produces a lot of output - and much more if     
  28.               graphics were saved.)
  29.  
  30.          3. Run PC2MID on the output file from dasm to create a MIDI file.
  31.  
  32.  
  33.          The command format for PC2MID is as follows:
  34.  
  35.              pc2mid dasmfile midifile [options]
  36.  
  37.          [options] may include the following:
  38.  
  39.           -fn   specifies MIDI file format to write.  Default is -f1.
  40.                    -f0  single track format
  41.                    -f1  multi-track format.  Each channel's data
  42.                          will be written to a separate track (but
  43.                          original PC tracks are not retained if
  44.                          they are not channelized).
  45.  
  46.           -tn   specifies tempo to use if none is specified in the
  47.                 file (default is -t120).
  48.  
  49.           -vn   randomizes note velocities +/- n units.  Use with care.
  50.                 Default is -v0.
  51.  
  52.           -en   randomizes event times +/- n ticks.  It is usually not
  53.                 wise to let event times vary by more than a few ticks.
  54.                 Default is -e0.
  55.  
  56.          After PC2MID has read the track data it will request up to 5 lines
  57.          of title text to insert in the file.  Just press return for fewer
  58.          than 5.  If format 1 output is being used, you will also be
  59.          prompted for instrument name text for each channel.  Until you are
  60.          satisfied with a conversion, it is a good idea not to waste time
  61.          entering this text.
  62.  
  63.          As an example, if you have a Personal Composer file (with tracks
  64.          saved) called song.pc, do the following:
  65.  
  66.             dasm -full song.pc >out
  67.             pccon out song.mid
  68.  
  69.               <answer any text prompts>
  70.  
  71.          That should be it.  Hopefully, Personal Composer will be able to
  72.          export MIDI files on its own one day in the not too distant future
  73.          (fingers crossed).  This program is a quick fix which should
  74.          handle many conversion cases until then, but a full-featured
  75.          utility wasn't justified.  So what you see is what you get.
  76.  
  77.          Good luck!
  78.  
  79.